package com.ciwong.epaper.modules.evaluate.bean;

import java.io.Serializable;

/**
 * 跟读句子的答案
 * Created by lzr on 2017/4/20.
 */
public class SentenceAnswerBean implements Serializable {

    private Sentence sentence; //句子

    private String soundUrl;   //录音文件地址

    private String urlLiYun;  //阿里云上传的地址

    private int audioDuration; //当前音频文件时长(豪秒)

    private int readTimes; //跟读次数

    private long countTime; //跟读总时间


    //音标
    private String lines;

    /**
     * 云知声音频地址
     */
    private String yzsAudioUrl;

    private float fluency;
    private float integrity;
    private float pronunciation;

    public String getYzsAudioUrl() {
        return yzsAudioUrl;
    }

    public void setYzsAudioUrl(String yzsAudioUrl) {
        this.yzsAudioUrl = yzsAudioUrl;
    }

    public SentenceAnswerBean() {

    }

    public SentenceAnswerBean(Sentence sentence, String soundUrl, int audioDuration, String lines, String urlLiYun,String yzsAudioUrl,float fluency,float integrity,float pronunciation) {
        this.sentence = sentence;
        this.soundUrl = soundUrl;
        this.audioDuration = audioDuration;
        this.readTimes = 1;
        this.lines = lines;
        this.urlLiYun = urlLiYun;
        this.yzsAudioUrl = yzsAudioUrl;
        this.fluency = fluency;
        this.integrity = integrity;
        this.pronunciation = pronunciation;
    }

    public float getFluency() {
        return fluency;
    }

    public void setFluency(float fluency) {
        this.fluency = fluency;
    }

    public float getIntegrity() {
        return integrity;
    }

    public void setIntegrity(float integrity) {
        this.integrity = integrity;
    }

    public float getPronunciation() {
        return pronunciation;
    }

    public void setPronunciation(float pronunciation) {
        this.pronunciation = pronunciation;
    }

    public void setCountTime(long countTime) {
        this.countTime = countTime;
    }

    public long getCountTime() {
        return countTime;
    }

    public void setReadTimes(int readTimes) {
        this.readTimes = readTimes;
    }

    public void setAudioDuration(int audioDuration) {
        this.audioDuration = audioDuration;
    }


    public int getReadTimes() {
        return readTimes;
    }

    public int getAudioDuration() {
        return audioDuration;
    }


    public void setSentence(Sentence sentence) {
        this.sentence = sentence;
    }

    public void setSoundUrl(String soundUrl) {
        this.soundUrl = soundUrl;
    }

    public Sentence getSentence() {
        return sentence;
    }

    public String getSoundUrl() {
        return soundUrl;
    }

    public void setUrlLiYun(String urlLiYun) {
        this.urlLiYun = urlLiYun;
    }

    public String getUrlLiYun() {
        return urlLiYun;
    }

    public String getLines() {
        return lines;
    }

    public void setLines(String lines) {
        this.lines = lines;
    }

    @Override
    public boolean equals(Object o) {
        return ((SentenceAnswerBean) o).getSoundUrl().equals(getSoundUrl());
    }
}